<div class="pre-footer">
    <div class="container">
        <div class="row">
            <!-- BEGIN BOTTOM ABOUT BLOCK -->
            <div class="col-md-3 col-sm-6 pre-footer-col" >
                <h2 style="font-family: Microsoft YaHei,serif;">关于我们<span style="display: block;font-size: 16px;margin-top:5px">About us</span></h2>
                <p style="font-family: Microsoft YaHei,serif;">${(sysSetting.introduction)!}</p>
            </div>
            <!-- END BOTTOM ABOUT BLOCK -->
            <!-- BEGIN BOTTOM INFO BLOCK -->
            <div class="col-md-3 col-sm-6 pre-footer-col" style="margin-left: 42px;">
                <h2 style="font-family: Microsoft YaHei,serif;">最新动态<span style="display: block;font-size: 16px;margin-top:5px">Latest News</span></h2>
                <ul class="list-unstyled">
                    <#if newsList?? && (newsList?size > 0) >
                        <#list newsList as news>
                            <li style="font-family: Microsoft YaHei,serif;"><i class="fa fa-angle-right"></i> <a href="/index/news?id=${news.id!}">${news.title!}</a></li>
                        </#list>
                    </#if>
                </ul>
            </div>
            <!-- END INFO BLOCK -->

            <!-- BEGIN BOTTOM CONTACTS -->
            <div class="col-md-3 col-sm-6 pre-footer-col" style="margin-left: 42px;">
                <h2 style="font-family: Microsoft YaHei,serif">联系我们<span style="display: block;font-size: 16px;margin-top:5px">Contact us</span></h2>
                <address class="margin-bottom-40" style="font-family: Microsoft YaHei,serif;">
                    地址：广东省珠海市唐家湾金同路2000号联合国际学院行政楼501<br>
                    邮编：519085<br>
                    电话：${(sysSetting.phone)!}<br>
                    邮件：uicdo@uic.edu.hk<br>
                </address>
            </div>

            <div class="col-md-2 col-sm-6 pre-footer-col">
                <h2 style="font-family: Microsoft YaHei,serif;margin-left: 30px;">微信公众号<span style="display: block;font-size: 16px;margin-top:5px;margin-right: -80px">UIC Souvenir WeChat</span></h2>
                <img src="/assets/pages/img/qr-code.jpg" style="height: 90px;width: 90px;margin-left: 30px;"/>
            </div>
            <!-- END BOTTOM CONTACTS -->
        </div>
    </div>
</div>
<!-- END PRE-FOOTER -->

<!-- BEGIN FOOTER -->
<div class="foot">
    <section class="container">
        <div class="custom">
            <div class="allfoot" style="text-align: center;font-family: Microsoft YaHei,serif;">地址：广东省珠海市唐家湾金同路2000号<span>|</span>电话：${(sysSetting.phone)!}<span>|</span>邮编：519085&nbsp;&nbsp;<br>©2019 United International College(UIC). All Rights Reserved. <span> 粤ICP备07509519号</span><span>京公网安备44049102496044</span></div></div>
    </section>
</div>

<script src="/assets/plugins/respond.min.js"></script>
<![endif]-->
<script src="/assets/plugins/jquery.min.js" type="text/javascript"></script>
<script src="/assets/plugins/jquery-migrate.min.js" type="text/javascript"></script>
<script src="/assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="/assets/plugins/bootstrap/js/bootstrap-paginator.min.js" type="text/javascript"></script>
<script src="/assets/corporate/scripts/back-to-top.js" type="text/javascript"></script>
<script src="/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->

<!-- BEGIN PAGE LEVEL JAVASCRIPTS (REQUIRED ONLY FOR CURRENT PAGE) -->
<script src="/assets/plugins/fancybox/source/jquery.fancybox.pack.js" type="text/javascript"></script><!-- pop up -->
<script src="/assets/plugins/owl.carousel/owl.carousel.min.js" type="text/javascript"></script><!-- slider for products -->
<script src='/assets/plugins/zoom/jquery.zoom.min.js' type="text/javascript"></script><!-- product zoom -->
<script src="/assets/plugins/bootstrap-touchspin/bootstrap.touchspin.js" type="text/javascript"></script><!-- Quantity -->
<script src="/assets/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<script src="/assets/plugins/rateit/src/jquery.rateit.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js" type="text/javascript"></script><!-- for slider-range -->
<script src="/assets/corporate/scripts/layout.js" type="text/javascript"></script>
<script src="/assets/pages/scripts/bs-carousel.js" type="text/javascript"></script>
<script src="/assets/plugins/layer/2.4/layer.js" type="text/javascript"></script>
<script src="/assets/plugins/template.js" type="text/javascript"></script>
<script src="/assets/plugins/redirect.js" type="text/javascript"></script>
<script src="/assets/plugins/treeview/bootstrap-treeview.js" type="text/javascript"></script>
<script src="/assets/plugins/clamp.js" type="text/javascript"></script>
<script type="text/javascript">
    function loadMyAccount() {
        window.location = "/personalCenter";
    }

    jQuery(document).ready(function() {
        <#if member??>
        $("#cartDiv").load("/index/cart");
        </#if>
        Layout.init();
        Layout.initOWL();
        Layout.initImageZoom();
        Layout.initTouchspin();

        $(".fancybox-button").fancybox({
            'afterClose':function (e) {
                var index = e.element.attr('goodsIndex');
                $("#view"+index).trigger("click");
            }
        });
    });

    function getGoods(id) {
        window.location = "/goods?cid="+id;
    }

    function getGoodsDetail(id,cid){
        if (cid != null && cid != undefined){
            window.location = "/goods/detail?cid="+cid+"&id="+id;
        } else{
            window.location = "/goods/detail?id="+id;
        }

    }

    function removeCartProduct(id,obj) {
        $.post('/cart/cartDel',{productId:id},function (data) {
            if (data.result != 0){
                $("#cartDiv").load("/index/cart");
            }else{
                layer.alert('移除失败！', {title: '错误信息',icon: 2});
            }
        })
    }

    function reloadCart() {
        $("#cartDiv").load("/index/cart");
    }

    function addCartProduct(id){
        var num = $("#product-quantity").val();
        var index = layer.load(3);
        $.post('/cart/addCart',{productId:id, productNum:num},function (data) {
            if (data.result > 0){
                layer.close(index);
                layer.msg('添加成功!');
                $("#cartDiv").load("/index/cart");
            }
        })
    }

    function loadNavContent(type,id) {
        //资讯
        if (type == 0){
            window.location = '/index/newsList';
        }
        //文章
        if (type == 1){
            window.location = '/index/article?navId='+id;
        }

    }

    function searchGoods() {
        var keywords = $("#keywords").val();
        window.location = "/goods?cid=0&search="+encodeURIComponent(keywords);
    }

    $("input[name='product-quantity']").on("change", function(){
        var num = $(this).attr('limit');
        if (parseInt($(this).val()) > parseInt(num)){
            $(this).val(num);
        }
    });

    function loadLogin() {
       window.location = "/login";

    }

    function loadRegister() {
        window.location = "/register";
    }

    function logout() {
        $.post('/member/logout',function () {
            layer.msg("退出成功");
            window.location = "/";
        })
    }

</script>

